package com.android.recorder01;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class StartActivity extends Activity {
	TextView text;
	Button startBtn;
	Button listBtn;
	
	//Intent Requestcode
	//final static int EDIT_ACT = 0;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.start_layout);
		
		text = (TextView) findViewById(R.id.text);
		
		
		startBtn = (Button)findViewById(R.id.start_btn);
		startBtn.setOnClickListener(new OnClickListener() {			
			@Override
			public void onClick(View arg0) {
				Intent intent = new Intent(StartActivity.this, EnterActivity.class);
				startActivity(intent);
			}
		});
		
		listBtn = (Button)findViewById(R.id.list_btn);
		listBtn.setOnClickListener(new OnClickListener() {			
			@Override
			public void onClick(View arg0) {
				Intent intent = new Intent(StartActivity.this, ListActivity.class);
				startActivity(intent);
			}
		});
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.start, menu);
		return true;
	}

}
